package com.bjpowernode.money.mapper;

import com.bjpowernode.money.model.IncomeRecord;

import java.util.Date;
import java.util.List;

public interface IncomeRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(IncomeRecord record);

    int insertSelective(IncomeRecord record);

    IncomeRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(IncomeRecord record);

    int updateByPrimaryKey(IncomeRecord record);

    // 查出当前时间满足条件的收益记录
    List<IncomeRecord> selectIncomeRecordByDate(Date currentTime);

    // 根据id更新状态
    int updateStatusById(Integer id);
}